import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2023-03-14
 * Time: 14:42
 */
public class Test02 {
    public static void main(String[] args) {
//        System.out.println(99971%99991);
        Scanner scan  = new Scanner(System.in);
        while (scan.hasNext()){
            long a = scan.nextInt();
            long b = scan.nextInt();
            long c = 1;
            long sum = a * b;
            while (a % b != 0){
                c = a % b;
                a = b;
                b = c;
            }

            long  n =  sum / c;
            System.out.println(n);

        }
    }
}
//import java.util.*;
//
//public class Main{
//    public static void main(String[] args){
//        Scanner sc = new Scanner(System.in);
//        int a = sc.nextInt();
//        int b = sc.nextInt();
//        int m = min(a, b);
//        int n = a * b / m;
//        System.out.print(n);
//    }
//    public static int min(int a, int b){
//        if(a < b){
//            int t = a;
//            a = b;
//            b = t;
//        }
//        while(b != 0){
//            if(a == b){
//                return a;
//            }else{
//                int k = a % b;
//                a = b;
//                b = k;
//            }
//        }
//        return a;
//    }
//}
